<?php
namespace app\model\post;

use think\Model;

class TypeModel extends Model
{
    protected $name = 'post_type';
    protected $pk = 'id';

    public static function TypeExist($english) {
        return (self::where("english",$english)->find() != null);
    }
}